package com.nanbei.a01.event;

import org.springframework.context.ApplicationEvent;

/**
 * @ClassDescription: 用户监听事件
 * @JdkVersion: 1.8
 * @Author: libs
 * @Created: 2024/9/6 13:47
 */
public class UserRegisteredEvent extends ApplicationEvent {

    private String msg;
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public UserRegisteredEvent(Object source,String msg) {
        super(source);
        this.msg = msg;
    }

    public String getMsg(){
        return msg;
    }
}
